﻿<Window x:Class="DBLoader.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:qututil="clr-namespace:QUT.Bio.Util;assembly=QUT.Bio"
		Title="SilverMap database load utility"
		Height="300"
		Width="1000">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="auto" />
			<RowDefinition Height="auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="auto" />
		</Grid.RowDefinitions>

		<Menu>
			<MenuItem Header="Application">
				<MenuItem Header="New database"
						  Click="NewDatabase" />

				<MenuItem Header="Connect to database"
						  Click="ConnectDatabase" />

				<MenuItem Header="Import gene information"
						  Click="ImportGenes" />

				<MenuItem Header="Blast genomes"
						  Click="Blast" />

				<MenuItem Header="Remove Blast hits"
						  Click="Unblast" />

				<MenuItem Header="Exit"
						  Click="Exit" />
			</MenuItem>
			
			<MenuItem Header="Help">
				<MenuItem Header="About"
						  Click="About" />

				<MenuItem Header="Using this program"
						  Click="Using" />
			</MenuItem>
		</Menu>

		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>

			<TextBlock Text="Event log:"
					   Grid.Column="0"
					   HorizontalAlignment="Left"
					   VerticalAlignment="Center" />

			<Button Content="Clear"
					Width="50"
					Grid.Column="1"
					HorizontalAlignment="Right"
					Click="ClearEventLog" />
		</Grid>


		<ScrollViewer Grid.Row="2">
			<TextBox IsReadOnly="True"
					 Name="eventLog"
					 TextWrapping="NoWrap" />
		</ScrollViewer>

		<qututil:StatusBar Name="statusBar"
						   Grid.Row="3" />
	</Grid>
</Window>
